# -*- coding: utf-8 -*-
# @Time    : 2023/5/26 0026 14:39
# @Author  : zcj
# @File    : test_single.py
# @Software : PyCharm
import pytest
import requests
import allure
from common.send_request import SendRequest
from common.util import data_path
from common.read_yaml import get_yaml_data
from common import single_convert


ta = get_yaml_data(data_path + f'/test_hgyq.yaml')["one"]  # 读取节点下全部数据
case = single_convert.single_data_convert(ta)


@pytest.mark.parametrize('info', case)
@allure.feature("单接口测试用例")
def test_one(info):
    SendRequest(info)